package com.usian.service;

import com.usian.pojo.TbItem;
import com.usian.pojo.TbItemDesc;
import com.usian.utils.PageResult;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author chen
 * @date 2021/1/9 - 11:35 - 星期六
 * @project usian_parent
 * @package com.usian.service
 * @by GGbomd猪猪侠
 */
@Component
public interface TbItemService {

    PageResult selectTbItemAllByPage(Integer page, Integer rows);

    Integer insertTbItem(TbItem tbItem, String desc, String itemParams);

    Integer deleteItemById(Long itemId);

    Map<String, Object> preUpdateItem(Long itemId);

    Integer updateTbItem(TbItem tbItem, String desc, String itemParams);

    TbItem selectItemInfo(Long itemId);

    TbItemDesc selectItemDescByItemId(Long itemId);

    Integer updateTbItemByOrderId(String orderId);
}
